package com.shop.om.sysUser.dao;

import com.shop.om.mapper.BaseMapper;
import com.shop.om.model.sysUser.SysMenuEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author cjt
 * @version 1.0.0
 * @description
 * @date 2020/6/19  17:48
 * @Version v1.0
 **/
@Mapper
public interface SysMenuDao  extends BaseMapper<SysMenuEntity> {
    /**
     * 根据父菜单，查询子菜单
     *
     * @param parentId 父菜单ID
     */
    List<SysMenuEntity> queryListParentId(Long parentId);

    /**
     * 获取不包含按钮的菜单列表
     */
    List<SysMenuEntity> queryNotButtonList();

    /**
     * 查询用户的权限列表
     */
    List<SysMenuEntity> queryUserList(Long userId);
}
